package cn.oms.manage.doctor;

import cn.oms.manage.dao.persist.mapper.DoctorMapper;
import cn.oms.manage.dao.persist.repository.IDoctorRepository;
import cn.oms.manage.pojo.entity.Doctor;
import org.junit.jupiter.api.Test;
import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.boot.test.context.SpringBootTest;

@SpringBootTest
public class doctorText {
    @Autowired
    private IDoctorRepository doctorRepository;
    @Test
    public void a(){
        Doctor doctor = new Doctor();
        doctor.setId(1l);
        doctor.setName("张三");
        doctorRepository.insert(doctor);

        System.out.println("插入成功");


    }
}
